home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ipolish.postinst < prev    next >
Text File  |  2009-04-13  |  789b  |  34 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5.  
  6. if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl "20070410-1"; then
  7.     rm -f /var/lib/ispell/polish.hash
  8.     rm -f /var/lib/ispell/polish.list
  9.     rm -f /var/lib/ispell/polish.compat
  10.     [ ! -d /var/lib/ispell ] || rmdir --ignore-fail-on-non-empty /var/lib/ispell
  11.  
  12.     if [ -e /usr/share/debconf/confmodule ]; then
  13.       . /usr/share/debconf/confmodule
  14.         db_purge  || true
  15.     fi    
  16. fi
  17.  
  18.  
  19. # Automatically added by installdeb-ispell
  20. . /usr/share/debconf/confmodule
  21. SCRIPT="update-default-ispell"
  22.  
  23. if [ "$1" = "configure" ] ; then
  24.     if which $SCRIPT > /dev/null 2>&1; then
  25.     $SCRIPT  --rebuild
  26.     else
  27.     echo "Error: $SCRIPT not present or executable. Missing dependency on dictionaries-common?" >&2
  28.     exit 1
  29.     fi
  30. fi
  31. # End automatically added section
  32.  
  33.  
  34.